# 打开文件
# f = open("D:/f.txt", 'r', encoding='utf-8')
#
# print(f.read())
# f.close()
# with open("D:/f.txt", 'r', encoding='utf-8') as f:
#
#     print(f.read())

# for r in f.readline():
#     print(r)
#     print("--------------")

p = open("D:/1.png", 'rb')
print(p.read())

f = open("D:/f.txt", 'w', encoding='utf-8')
f.write("Hello")

f.close()